using System;
using AGG.Transform;
using AGG.Image;
using AGG.VertexSource;

namespace AGG.UI
{
    public class MatchParentBoundsWidget : GUIWidget
    {
        public MatchParentBoundsWidget()
        {
            CanFocus = true;
        }

        public override void OnParentChanged()
        {
            Parrent.Resize += new ResizeEventHandler(Parrent_Resize);
            Bounds = Parrent.Bounds;
            base.OnParentChanged();
        }

        public void Parrent_Resize(object sender, EventArgs e)
        {
            Bounds = Parrent.Bounds;
        }
    }
}